package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the SP_BO.TB_SP_BO_SR_CARTO_UGA table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="SP_BO.TB_SP_BO_SR_CARTO_UGA"
 */

public abstract class BasetbSpBoSRCartoUga  implements Serializable {

	public static String REF = "tbSpBoSRCartoUga";
	public static String PROP_MAJ_USER = "majUser";
	public static String PROP_DATE_MAJ = "dateMaj";
	public static String PROP_CODE_U_G_A = "codeUGA";
	public static String PROP_CS_COMMON_UGA = "csCommonUga";
	public static String PROP_POS_Y = "posY";
	public static String PROP_POS_X = "posX";


	// constructors
	public BasetbSpBoSRCartoUga () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasetbSpBoSRCartoUga (java.lang.Integer csCommonUga) {
		this.setCsCommonUga(csCommonUga);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer csCommonUga;

	// fields
	private java.lang.Integer posX;
	private java.lang.Integer posY;
	private java.lang.String codeUGA;
	private java.lang.String majUser;
	private java.util.Date dateMaj;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="CS_COMMON_UGA"
     */
	public java.lang.Integer getCsCommonUga () {
		return csCommonUga;
	}

	/**
	 * Set the unique identifier of this class
	 * @param csCommonUga the new ID
	 */
	public void setCsCommonUga (java.lang.Integer csCommonUga) {
		this.csCommonUga = csCommonUga;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: pos_x
	 */
	public java.lang.Integer getPosX () {
		return posX;
	}

	/**
	 * Set the value related to the column: pos_x
	 * @param posX the pos_x value
	 */
	public void setPosX (java.lang.Integer posX) {
		this.posX = posX;
	}



	/**
	 * Return the value associated with the column: pos_y
	 */
	public java.lang.Integer getPosY () {
		return posY;
	}

	/**
	 * Set the value related to the column: pos_y
	 * @param posY the pos_y value
	 */
	public void setPosY (java.lang.Integer posY) {
		this.posY = posY;
	}



	/**
	 * Return the value associated with the column: CODE_UGA
	 */
	public java.lang.String getCodeUGA () {
		return codeUGA;
	}

	/**
	 * Set the value related to the column: CODE_UGA
	 * @param codeUGA the CODE_UGA value
	 */
	public void setCodeUGA (java.lang.String codeUGA) {
		this.codeUGA = codeUGA;
	}



	/**
	 * Return the value associated with the column: MAJ_USER
	 */
	public java.lang.String getMajUser () {
		return majUser;
	}

	/**
	 * Set the value related to the column: MAJ_USER
	 * @param majUser the MAJ_USER value
	 */
	public void setMajUser (java.lang.String majUser) {
		this.majUser = majUser;
	}



	/**
	 * Return the value associated with the column: D_MAJ
	 */
	public java.util.Date getDateMaj () {
		return dateMaj;
	}

	/**
	 * Set the value related to the column: D_MAJ
	 * @param dateMaj the D_MAJ value
	 */
	public void setDateMaj (java.util.Date dateMaj) {
		this.dateMaj = dateMaj;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.tbSpBoSRCartoUga)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.tbSpBoSRCartoUga tbSpBoSRCartoUga = (com.gsk.europepharma.salesReport.hibernate.tbSpBoSRCartoUga) obj;
			if (null == this.getCsCommonUga() || null == tbSpBoSRCartoUga.getCsCommonUga()) return false;
			else return (this.getCsCommonUga().equals(tbSpBoSRCartoUga.getCsCommonUga()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getCsCommonUga()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getCsCommonUga().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}